@import './default';
@import './mixin/mixin';

// 0.5px
.thin {
	position: relative;

	&::after {
		position: absolute;
		left: 0;
		top: 0;
		border: 1px solid;
		width: 200%;
		height: 200%;
		content: '';
		transform: scale(0.5);
		transform-origin: left top;
	}
}

// 用于全屏居中（容器）
.center-fullscreen {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.fullscreen {
	// width: 100vw;
	width: 100%;
	height: 100vh;
	box-sizing: border-box;
	overflow: hidden;
}

.box {
	box-sizing: border-box;
}

.shadow {
	@include shadow($shadow_color);
}

.paper {
	@include paper(3px);
	@include shadow();
}

.paper6 {
	@include paper(6px);
	@include shadow();
}

//文字限制几多行后就出现省略号
.ellip1 {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ellip2 {
	@include ellip(2);
}

.ellip3 {
	@include ellip(3);
}

.radio-custom1 {
	.trigger-core {
		display: inline-block;
		position: relative;
		padding: 6px 16px;
		font-size: 16px;
		border-radius: 10px;
		transition: all 0.3s;
		cursor: pointer;
	}

	& input[data-core='core']:checked + .trigger-core {
		background-color: rgba(255, 102, 0, 0.1);
		color: #ff6600;
	}
}

.radio-custom2 {
	.trigger-core {
		display: inline-block;
		position: relative;
		padding: 6px 16px;
		font-size: 16px;
		border-radius: 50px;
		transition: all 0.3s;
		background-color: #fff;
		margin-right: 10px;
		cursor: pointer;
	}

	& input[data-core='core']:checked + .trigger-core {
		background-color: #ff6600;
		color: #fff;
	}
}

.radio-box-normalize input[type='radio']:checked + label > .radio-out {
	border-color: $theme_color;
}

.radio-box-normalize input[type='radio']:checked + label > .radio-out > .radio-in {
	border-color: $theme_color;
	opacity: 1;
}

.radio-box-normalize label {
	cursor: pointer;
}

.radio-out {
	border-radius: 50%;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	-webkit-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
	display: inline-block;
	position: relative;
	padding: 2px;
	border: solid 3px rgba(0, 0, 0, 0.12);
	line-height: 0;
}

.radio-in {
	border-radius: 50%;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	display: inline-block;
	border: solid 4px #ccc;
	cursor: pointer;
	opacity: 0;
}

// radio-font
.radio-box-font {
	display: inline-block;
}

.radio-font {
	@include bor-r();
	padding: 4px 16px 4px 16px;
	border-style: solid;
	border-width: 1px;
	border-color: $hint_b;
	color: $hint_b;
}

.radio-box-font input[type='radio']:checked + .radio-font {
	border-color: $green;
	color: $green;
}
